﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace MaxLeaf.Platform.DataContract
{
    [Serializable]
    [DataContract]
    [CommonsLib.ORM.DataTable(DBName = "DB_A", TableName = "Test", KeyPropName = "Key", ForeignKeyPropName = "ForeignKey")]
    public class TestDataModel
    {
        [DataMember]
        [CommonsLib.ORM.DataField("id", true)]
        public int Key
        {
            get;
            set;
        }


        [DataMember]
        [CommonsLib.ORM.DataField("hdrid", "int")]
        public int ForeignKey
        {
            get;
            set;
        }

        [DataMember]
        [CommonsLib.ORM.DataField("Name", "NChar", 10)]
        public string Name
        {
            get;
            set;
        }
    }
}
